﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/MasterPage.master" AutoEventWireup="true" CodeFile="MyAccount.aspx.cs" Inherits="Home_MyAccount" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="First">
        <div class="Title"></div>
        <div class="Title"><%= Language["Profile"] %></div>
    </div>
    <div class="Second">
        <div id="content">
        <div class="InfoAccount">Account name: <%=currentUser.Account%></div>
        <div class="InfoAccount">Status: <%=ConvertActive(currentUser.Active)%></div>
        <div class="InfoAccount">Email: <%=currentUser.Mail%></div>
       
        <div class="BoxChangePass">
            <div class="Item1">
                <div class="ClassLabel">Old password</div>
                <asp:TextBox ID="txtPasswordOld" TextMode="Password" runat="server"></asp:TextBox>               
                <div class="DivError">
                    <asp:RequiredFieldValidator ID="PasswordOld" runat="server" ErrorMessage="*" ControlToValidate="txtPasswordOld" ></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="rvfpasswordold" runat="server" ControlToValidate="txtPasswordOld" ValidationExpression="[^<>!@#$%^&*()+-=|]*" />
                    <asp:Label ID="ErrorOldPass" runat=server CssClass="ClassError"></asp:Label>
                </div>
            </div>            
            <div class="Item1">
                <div class="ClassLabel">New password</div>
               <asp:TextBox ID="txtPasswordNew" TextMode="Password" runat="server"></asp:TextBox>
               <div class="DivError">
                    <asp:RequiredFieldValidator ID="PasswordNew" runat="server" ErrorMessage="*" ControlToValidate="txtPasswordNew" ></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="rvfpasswordnew" runat="server" ControlToValidate="txtPasswordNew" ValidationExpression="[^<>!@#$%^&*()+-=|]*" />
                    <asp:Label ID="ErrorNewPass" runat=server CssClass="ClassError"></asp:Label>
                </div>
            </div>
            <div class="Item1">
                <div class="ClassLabel">Re-type</div>
                <asp:TextBox ID="txtRetype" TextMode="Password" runat="server" Text=""></asp:TextBox>
                <div class="DivError">
                    <asp:RegularExpressionValidator ID="rvfretype" runat="server" ControlToValidate="txtPasswordNew" ValidationExpression="[^<>!@#$%^&*()+-=|]*" />
                    <asp:CompareValidator runat="server" ID="Comp1" ControlToValidate="txtPasswordNew" ControlToCompare="txtRetype" Text="" CssClass="ClassError"/>
                </div>
            </div>
            <div class="Item2">
                <asp:Button Text="Change password" CssClass="BtnAddNewCategory" ID="btn_changePassword" 
                    runat="server" BorderStyle="None" Font-Size="Medium" Height="36px" 
                    Width="346px" onclick="btn_changePassword_Click"/>
            </div>
        </div>
            </div>
    </div>
</asp:Content>

